//
//  Section.h
//  jhf
//
//  Created by 计海峰 on 2019/6/28.
//  Copyright © 2019 计海峰. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <ReactiveObjC/ReactiveObjC.h>
#import <KVOMutableArray/KVOMutableArray.h>
#import <KVOMutableArray/KVOMutableArray+ReactiveCocoaSupport.h>

#import "Row.h"

NS_ASSUME_NONNULL_BEGIN

@interface Section : NSObject

+ (instancetype)new NS_UNAVAILABLE;

//- (instancetype)init NS_UNAVAILABLE;

@property (nonatomic, strong) UIView *headerView;

@property (nonatomic, assign) CGFloat headerHeight;

@property (nonatomic, strong) UIView *footerView;

@property (nonatomic, assign) CGFloat footerHeight;

@property (nonatomic, strong) KVOMutableArray <Row *>*rows;

@property (nonatomic, readwrite, strong) RACSubject *reloadSubject;

+ (instancetype)sectionWithRows:(NSMutableArray <Row *>*)array;

@end

NS_ASSUME_NONNULL_END
